home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include <conio.h>
- #include <graphics.h>
- main()
- {
- int graphdriver = DETECT,graphmode;
- /* detect and initialize the graphics system */
- initgraph(&graphdriver,&graphmode, "c:\\turboc");
- /* Print value of maximum mode number allowed */
- printf("Maximum mode number allowed on "
- "current graphics driver: %d\n",
- getmaxmode());
- /* Wait for a keystroke before exiting */
- getch();
- closegraph();
- }